﻿using System;

namespace MessagePack.Formatters
{
	// Token: 0x0200004B RID: 75
	public class SByteFormatter : IMessagePackFormatter<sbyte>
	{
		// Token: 0x0600011B RID: 283 RVA: 0x00004B45 File Offset: 0x00002F45
		private SByteFormatter()
		{
		}

		// Token: 0x0600011C RID: 284 RVA: 0x00004B4D File Offset: 0x00002F4D
		public int Serialize(ref byte[] bytes, int offset, sbyte value, IFormatterResolver formatterResolver)
		{
			return MessagePackBinary.WriteSByte(ref bytes, offset, value);
		}

		// Token: 0x0600011D RID: 285 RVA: 0x00004B57 File Offset: 0x00002F57
		public sbyte Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize)
		{
			return MessagePackBinary.ReadSByte(bytes, offset, out readSize);
		}

		// Token: 0x0400003F RID: 63
		public static readonly SByteFormatter Instance = new SByteFormatter();
	}
}
